<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./css/bootstrap.css">
    <style>
        #ta{
            width: 500px;
        }
    </style>

</head>
<body>
<table id="ta" align="center"  class="table  table-hover table-bordered">
<tr>
    <td colspan="5">
        <h2 class="text-center">关键词信息列表</h2>
    </td>
</tr>
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>类型</td>
        <td>日期</td>
        <td>操作</td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
    <tr>
        <td>3</td>
        <td>股票</td>
        <td>金融</td>
        <td>2018-11-26</td>
        <td><a href="javascript:void(0)">刪除</a></td>
    </tr>
</table>
    <p class="text-center">
       <a href="index3.html"> <button class="btn btn-primary" >添加关键词</button></a>
    </p>
<script src="./js/jquery-3.5.1.js"></script>
<script>
    $(function (){
        $("tr:gt(1):even").css("background-color","#cccccc")
        $("a:not(a:last)").click(function (){
            let flog=confirm("确定删除吗");
            if(flog){
                $(this).parent().parent().remove();
            }else {
                alert("操作取消");
            }
        })
    })
</script>

</body>
</html>